import request from "@/utils/request";

export function getUserList(params) {
  return request({
    url: "back/users/user?type=list",
    method: "get",
    params
  });
}

export function userBan(data) {
  return request({
    url: "back/users/user?type=freeze",
    method: "post",
    data
  });
}

export function vipEdit(data) {
  return request({
    url: "back/users/user?type=edit",
    method: "post",
    data
  });
}

export function getVipApplyList(params) {
  return request({
    url: "back/users/user?type=levelQoe",
    method: "get",
    params
  });
}

export function vipApplyEdit(data) {
  return request({
    url: "back/users/user?type=levelAudit",
    method: "post",
    data
  });
}

export function getUserDetail(data) {
  return request({
    url: "back/users/user?type=details",
    method: "post",
    data
  });
}

export function addVipUser(data) {
  return request({
    url: "back/users/user?type=add",
    method: "post",
    data
  });
}

export function getVipPoster(params) {
  return request({
    url: "back/users/setting?type=getAdvert",
    method: "get",
    params
  });
}

export function setVipPoster(data) {
  return request({
    url: "back/users/setting?type=setAdvert",
    method: "post",
    data
  });
}

export function getVipTeacher(params) {
  return request({
    url: "back/users/setting?type=getTeacher",
    method: "get",
    params
  });
}

export function setVipTeacher(data) {
  return request({
    url: "back/users/setting?type=setTeacher",
    method: "post",
    data
  });
}